package cn.javablog.Vo;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;
import java.io.Serializable;
import java.util.Date;

@Data
public class CommentVo implements Serializable {
    @NotBlank(message = "用户名不能为空")
    private String nickname;
    @Pattern(regexp = "^(.+)@(.+)$",message = "邮箱的格式不合法")
    private String email;
    @NotBlank(message = "评论内容不能为空")
    private String content;
    private String avatar;
    private Date create_time;
    private int blog_id;
    private int parent_comment_id;
    private int state;
    private int id;
}
